﻿@model IEnumerable<RonYee.Models.Order>

@{
    ViewBag.Title = "已拒绝的订单";
    Layout = "~/Views/Shared/_LayoutOfSecondPage.cshtml";
}

<div class="box_padding">
    <h3><i class="ui-icons"></i>已拒绝的订单</h3>
    <div class="box_top ui-icons"></div>
    <div class="box_bg"><div class="box_padding">
    <div class="border_line">
        <table width="100%" border="0" cellpadding="0" cellspacing="0"><tbody>
        <tr>
            <th class="tdName">
                选择
            </th>
            <th class="tdName">
                订单编号
            </th>
            <th class="tdName">
                递交者
            </th>
            <th class="tdName">
                学 号
            </th>
            <th class="tdName">
                订单状态
            </th>
            <th class="tdName">
                联系方式
            </th>
            <th class="tdName">
                订单价格
            </th>
            <th class="tdName">
                递交日期
            </th>
            <th class="tdName">
                订单详细
            </th>
        </tr>

        @foreach (var item in Model) {
        <tr>
            <td class="tdData">
                <input type="checkbox"  id="CheckId" value="@item.OrderId" />
            </td>
            <td class="tdData">
                @Html.DisplayFor(modelItem => item.OrderId)
            </td>
            <td class="tdData">
                @Html.DisplayFor(modelItem => item.Username)
            </td>
            <td class="tdData">
                @Html.DisplayFor(modelItem => item.UserNo)
            </td>
            <td class="tdData">
                @Enum.GetName(typeof(RonYee.Models.Enum.OrderState),Convert.ToInt32(item.Status))
            </td>
            <td class="tdData">
                @Html.DisplayFor(modelItem => item.Phone)
            </td>
            <td class="tdData">
                @Html.DisplayFor(modelItem => item.Total)
            </td>
            <td class="tdData">
                @Html.DisplayFor(modelItem => item.OrderDate)
            </td>
            <td class="tdData">
                @Html.ActionLink("详细", "Details", new { id = item.OrderId }) 
            </td>
        </tr>
        }
        </tbody>
        </table> 
        </div>
    </div>
    </div>
    <div class="box_down ui-icons"></div>
</div>
<div class="line_top">
</div>
